/**
 * Created by xiaox on 2017/7/4.
 */

var Tile = function (x, y, z) {

    var x = x;
    var y = y;
    var zoom = z;

    this.getX = function () {
        return parseInt(x);
    }
    this.setX = function (val) {
        this.x = val;
    }
    this.getY = function () {
        return parseInt(y);
    }
    this.setY = function (val) {
        this.y = val;
    }
    this.getZ = function () {
        return parseInt(zoom);
    }
    this.setZ = function (val) {
        this.zoom = val;
    }

    this.toString = function () {

        return "x(" + x + "),y(" + y + "),zoom(" + zoom + ")";
    }
}

module.exports = Tile;